import { req } from "../utils/req.js"

// 轮播图
export const bannerApi = (params) => req('GET',"/user/home/banner/get", params);
// 交易进度
export const scheduleApi = (params) => req('GET',"/user/home/transfer/per", params);
// 我的交易详情
export const amountApi = (params) => req('POST',"/user/home/transfer/detail", params);
// 我的排位
export const qualifyingApi = (params) => req('POST',"/user/home/position/detail", params);
// 终端商品
export const finalGoodsApi = (params) => req('POST',"/user/home/terminal/goods", params);
// 查询用户收益
export const mywalletApi = (params) => req('GET',"/user/user/bill/info", params);
// 按月份查询总收益
export const mytotalbillApi = (params) => req('POST',"/user/user/bill/month/info", params);
// 查询个人收益
export const mypersonalbillApi = (params) => req('POST',"/user/user/bill/pagination", params);
// 获取提现信息
export const getwithdrawalApi = (params) => req('GET',"/user/user/withdrawal/info", params);
// 获取银行卡列表
export const getbankcardApi = (params) => req('GET',"/user/user/withdrawal/bank/", params);
// 获取系统银行卡信息
export const getbankinfoApi = (params) => req('GET',"/user/api/bank/system", params);

// 提现申请
export const applicationApi = (params) => req('POST',"/user/user/withdrawal", params);
// 提现记录
export const paginationApi = (params) => req('POST',"/user/user/withdrawal/pagination", params);
// 新增银行卡
export const addcardApi = (params) => req('POST',"/user/api/bank", params);
// 我的积分
export const getpointsApi = (params) => req('GET',"/user/user/points/info", params);
// 我的积分（新）
export const getpointsInfoApi = (params) => req('GET',"/user/user/points/pointInfo", params);
// 积分列表
export const pointslistApi = (params) => req('POST',"/user/user/points/pagination", params);
// 积分兑换
export const pointsforApi = (params) => req('POST',"/user/user/points/exchange", params);
// 我的伙伴信息
export const partnerdataApi = (params) => req('GET',"/user/user/my/partner", params);
// 伙伴列表
export const partnerlistApi = (params) => req('POST',"/user/user/partner/page", params);
// 伙伴总金额
export const totalamountApi = (params) => req('POST',"/user/user/partner/sumAmount", params);
// 我的终端列表
export const terminallistApi = (params) => req('POST',"/user/device/my/terminal/list", params);
// 我的终端 更新状态
export const updatestatusApi = (params) => req('GET',"/user/device/my/terminal/update/status/" + params);
// 机具绑定
export const terminalbindApi = (params) => req('POST',"/user/device/my/terminal/bind", params);
// 我的机具 数据获取
export const mymachinedataApi = (params) => req('POST',"/user/device/my/top", params);
// 我的机具 机具管理 
export const deviceListApi = (url,params) => req('POST',url + params);
//我的机具 设备列表
export const manageListApi = (params) => req('POST',"/user/device/my/manage/list", params);
// 划拨的用户
export const distributeApi = (params) => req('POST',"/user/device/my/distribute/member/"+ params);
// 划拨
export const terminalApi = (params) => req('POST',"/user/device/my/terminal/distribute", params);
// 批量划拨
export const distributebatchApi = (params) => req('POST',"/user/device/my/terminal/batch/distribute", params);
// 商户奖励 我的实时交易量
export const rewardMineTransferApi = (params) => req('POST',"/user/reward/mine/transfer", params);
// 商户奖励 最新动态
export const rewardNewStatusApi = (params) => req('POST',"/user/reward/platform/new/status", params);
// 商户奖励 平台奖励积分
export const rewardPointsApi = (params) => req('POST',"/user/reward/platform/points", params);
// 商户奖励 平台实时总交易量
export const rewardPlatformTransferApi = (params) => req('POST',"/user/reward/platform/transfer", params);
// 商户奖励 奖励积分排行榜
export const rewardRankApi = (params) => req('POST',"/user/reward/rank", params);
// 商户奖励 我的排位列表
export const rewardPositionApi = (params) => req('POST',"/user/reward/user/position", params);
// 首页头部数据
export const homeheaDataApi = (params) => req('GET',"/user/home/head", params);
// 查看汇总
export const summaryLookApi = (params) => req('POST',"/user/user/bill/month/summary", params);
// 领取奖励
export const getReceiveApi = (params) => req('GET',"/user/reward/user/receive/" + params);

//获取新用户激励奖
export const getNewUserWelfare = (params) => req('GET',"/user/reward/getNewUserWelfare",params);

//获取该用户待领奖
export const getUserWelfareRecord = (params) => req('POST',"/user/reward/getNewUserWelfareRecord", params);

// 领取新用户激励奖励
export const receiveNewUserWelfare = (params) => req('GET',"/user/reward/receiveNewUserWelfareById/" + params);
// 获取排队待领取记录
export const getClassifyApi = (params) => req('POST',"/user/reward/user/position",params);
// 领取排队成功奖励
export const rewardUserReceiveApi = (params) => req('GET',"/user/reward/user/receive/" + params.id)